/*
 * =====================================================================================
 *
 *       Filename:  decorator.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  02/12/2011 06:11:21 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  dp (8023), dp8023@gmail.com
 *        Company:  
 *
 * =====================================================================================
 */

#ifndef _DECORATOR_H_
#define _DECORATOR_H_

#include "person.h"

class decorator:public person
{
	public:
		person *adddecorator(person *pperson)
		{
			m_person = pperson;
			return this;
		}

		void show()
		{
			if (NULL != m_person)
			{
				m_person->show();
			}
		}

	protected:
		person *m_person;
};

#endif

